package com.jy.bo.common.conf.config.db.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.bo.common.conf.config.db.BizStatsSqlDao;
import com.jy.bo.common.conf.config.db.entity.BizStatsSqlEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Author: binary
 * Date: 2020/8/3 下午12:05
 */
@Repository
public class BizStatsSqlDaoImpl extends AbstractBaseMapper<BizStatsSqlEntity> implements BizStatsSqlDao {
    @Override
    public List<Object> executeStatsSql(String sql) {
        Map<String, Object> params = new HashMap<>();
        params.put("sql", sql);
        return getSqlSession().selectList(getStatement("executeStatsSql"), params);
    }
}
